import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import httpRequest from "./utils/httpRequest";
import { hasAuth } from "./utils";
import  uploadUrl  from "./utils/uploadUrl";

import ElementUI from "element-ui";
import VueCookies from "vue-cookies";
import '@/assets/styles/reset.css'
import "element-ui/lib/theme-chalk/index.css";

Vue.use(ElementUI);
Vue.use(VueCookies);
Vue.config.productionTip = false;
// 接口请求
Vue.prototype.$http = httpRequest;
// 权限判断
Vue.prototype.hasAuth = hasAuth;
// 上传接口
Vue.prototype.uploadUrl = uploadUrl;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
